package com.kt.common.constant;

/**
 * Description: 商品常量
 * Created with IntelliJ IDEA.
 *
 * @author: KamTeng
 * Date: 2021/6/21
 */
public class ProductConstant {

    public enum AttrEnum {
        /**
         * 品牌基本属性
         * 品牌销售属性
         */
        ATTR_TYPE_BASE(1, "基本属性"), ATTR_TYPE_SALE(0, "销售属性");

        private final int code;
        private final String msg;

        AttrEnum(int code, String msg) {
            this.code = code;
            this.msg = msg;
        }

        public int getCode() {
            return code;
        }


        public String getMsg() {
            return msg;
        }

    }

    public enum StatusEnum {
        /**
         * 新建、上架、下架
         */
        NEW_SPU(0, "新建"), UP_SPU(1, "商品上架"), DOWN_SPU(2, "商品下架");

        private final int code;
        private final String msg;

        StatusEnum(int code, String msg) {
            this.code = code;
            this.msg = msg;
        }

        public int getCode() {
            return code;
        }


        public String getMsg() {
            return msg;
        }

    }
}